let api = [];
const apiDocListSize = 1
api.push({
    name: 'default',
    order: '1',
    list: []
})
api[0].list.push({
    alias: 'ErrorController',
    order: '1',
    link: '',
    desc: '',
    list: []
})
api[0].list[0].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/',
    desc: '',
});
api[0].list[0].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/404',
    desc: '',
});
api[0].list[0].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/500',
    desc: '',
});
api[0].list.push({
    alias: 'AgentAccountController',
    order: '2',
    link: '代理商账户相关接口',
    desc: '代理商账户相关接口',
    list: []
})
api[0].list[1].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/account/',
    desc: '代理账户信息',
});
api[0].list[1].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/account/billlist/{agentId}',
    desc: '代理商账户信息表--管理端用',
});
api[0].list[1].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/account/accuontBillEnum',
    desc: '代理商账户查询枚举集合',
});
api[0].list.push({
    alias: 'AgentBonusController',
    order: '3',
    link: '代理商分红接口',
    desc: '代理商分红接口',
    list: []
})
api[0].list[2].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonus/',
    desc: '代理商分红列表--管理员用',
});
api[0].list[2].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonus/excel',
    desc: '代理分红列表:下载Excel',
});
api[0].list[2].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonus/agentWithdrawBonusList/{id}',
    desc: '代理商提现分红展示列表',
});
api[0].list[2].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonus/agent',
    desc: '代理商分红列表--代理商用',
});
api[0].list.push({
    alias: 'AgentBonusGroupController',
    order: '4',
    link: '代理分红团队接口',
    desc: '代理分红团队接口',
    list: []
})
api[0].list[3].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonus/group/',
    desc: '代理商分红团队列表',
});
api[0].list[3].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonus/group/',
    desc: '代理商分红团队保存/修改',
});
api[0].list.push({
    alias: 'AgentBonusIssueController',
    order: '5',
    link: '代理商分红发放接口',
    desc: '代理商分红发放接口',
    list: []
})
api[0].list[4].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusissus/',
    desc: '代理商分红发放情况列表',
});
api[0].list[4].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusissus/ablebounsList/{agentId}',
    desc: '可提现的分红列表,应用于新增分红提现上部分列表展示',
});
api[0].list[4].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusissus/save',
    desc: '代理商分红提现保存',
});
api[0].list[4].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusissus/audit/{id}',
    desc: '代理商分红提现审核',
});
api[0].list[4].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusissus/bounsdetails/{id}',
    desc: '分红提现详情--用于回显',
});
api[0].list.push({
    alias: 'AgentBonusRuleController',
    order: '6',
    link: '代理分红规则接口',
    desc: '代理分红规则接口',
    list: []
})
api[0].list[5].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusRule/',
    desc: '新增',
});
api[0].list[5].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusRule/{id}',
    desc: '查看详情',
});
api[0].list[5].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bonusRule/',
    desc: '查询列表',
});
api[0].list.push({
    alias: 'AgentCommissionController',
    order: '7',
    link: '代理商佣金接口',
    desc: '代理商佣金接口',
    list: []
})
api[0].list[6].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commission/',
    desc: '加载代理商佣金列表--客服用',
});
api[0].list[6].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commission/{id}',
    desc: '查看代理商佣金详情',
});
api[0].list[6].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commission/agent',
    desc: '代理商佣金列表--代理用',
});
api[0].list.push({
    alias: 'AgentController',
    order: '8',
    link: '代理商后台接口',
    desc: '代理商后台接口',
    list: []
})
api[0].list[7].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/basic',
    desc: '保存代理商基本信息',
});
api[0].list[7].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/basicApply',
    desc: '保存代理商基本信息--代理申请',
});
api[0].list[7].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/basic/{id}',
    desc: '代理商基本信息回显',
});
api[0].list[7].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/common/{id}',
    desc: '代理商基本信息回显',
});
api[0].list[7].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/find/sn',
    desc: '根据代理商编号查找代理',
});
api[0].list[7].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/bind',
    desc: '代理商绑定',
});
api[0].list[7].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/applyBind/{agentId}',
    desc: '绑定代理商--会员申请',
});
api[0].list[7].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/chgEnable/{id}/{isEnable}',
    desc: '启用/禁用代理商',
});
api[0].list[7].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/list',
    desc: '代理商开户列表(管理后台使用)',
});
api[0].list[7].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/listExcel',
    desc: '代理商开户列表Excel（管理后台使用）',
});
api[0].list[7].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/listForAgent',
    desc: '',
});
api[0].list[7].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/listForTree',
    desc: '代理商开户列表--结构树用',
});
api[0].list[7].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/transl',
    desc: '代理商平移',
});
api[0].list[7].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/prom/{id}',
    desc: '等级变动',
});
api[0].list[7].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/profit/statistic',
    desc: '代理商获利统计列表',
});
api[0].list[7].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/profit/statistic/agent',
    desc: '代理商获利统计列表---代理商用',
});
api[0].list[7].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/member',
    desc: '查询代理商会员信息',
});
api[0].list[7].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/member/{agentId}',
    desc: '查询代理商会员信息',
});
api[0].list[7].list.push({
    order: '19',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/selectByUpAgent',
    desc: '已封单管理查询经销商下拉列表',
});
api[0].list[7].list.push({
    order: '20',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/formAgent',
    desc: '根据代理姓名查询代理商',
});
api[0].list[7].list.push({
    order: '21',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/treeTable',
    desc: '代理结构树（客服主管用）',
});
api[0].list[7].list.push({
    order: '22',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/treeTable/kefu',
    desc: '代理结构树（客服）',
});
api[0].list[7].list.push({
    order: '23',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/treeTable/agent',
    desc: '代理结构树（代理）',
});
api[0].list[7].list.push({
    order: '24',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/treeDetail/{id}',
    desc: '代理父级关系',
});
api[0].list[7].list.push({
    order: '25',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/del/{id}',
    desc: '删除代理',
});
api[0].list[7].list.push({
    order: '26',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/resetPwd/{id}',
    desc: '代理商重置密码',
});
api[0].list[7].list.push({
    order: '27',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/resetPassword',
    desc: '代理商重置密码',
});
api[0].list[7].list.push({
    order: '28',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/listStatic',
    desc: '开户列表统计',
});
api[0].list.push({
    alias: 'AgentDeliveryAddressController',
    order: '9',
    link: '代理商收货地址',
    desc: '代理商收货地址',
    list: []
})
api[0].list[8].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/',
    desc: '加载代理商收货地址列表---客服调用',
});
api[0].list[8].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/agent',
    desc: '加载代理商收货地址列表---代理调用',
});
api[0].list[8].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/del/{id}',
    desc: '删除代理商收货地址',
});
api[0].list[8].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/detail/{id}',
    desc: '代理商收货地址详情',
});
api[0].list[8].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/edit',
    desc: '编辑代理商收货地址',
});
api[0].list.push({
    alias: 'AgentDiscountController',
    order: '10',
    link: '代理商活动折扣相关api',
    desc: '代理商活动折扣相关Api',
    list: []
})
api[0].list[9].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/discount/',
    desc: '新增/修改',
});
api[0].list[9].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/discount/{id}',
    desc: '根据id查询规则详情',
});
api[0].list[9].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/discount/getByName',
    desc: '根据名称查询规则',
});
api[0].list[9].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/discount/del/{id}',
    desc: '删除折扣规则',
});
api[0].list[9].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/discount/',
    desc: '代理商活动折扣规则列表',
});
api[0].list.push({
    alias: 'AgentInfoController',
    order: '11',
    link: '代理商相关api',
    desc: '代理商相关Api',
    list: []
})
api[0].list[10].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/info/',
    desc: '保存代理商身份信息',
});
api[0].list[10].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/info/{agentId}',
    desc: '代理商身份信息(回显)',
});
api[0].list.push({
    alias: 'AgentRebateController',
    order: '12',
    link: '代理商返利api',
    desc: '代理商返利Api',
    list: []
})
api[0].list[11].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebate/',
    desc: '代理商返利列表--客服用',
});
api[0].list[11].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebate/{id}',
    desc: '通过id查看代理商返利',
});
api[0].list[11].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebate/rebateById/{id}',
    desc: '通过代理商提现id查看代理商返利（状态为有效已付款）',
});
api[0].list[11].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebate/agent',
    desc: '加载代理商返利列表--代理用',
});
api[0].list.push({
    alias: 'AgentRebateRuleController',
    order: '13',
    link: '代理商返利规则api',
    desc: '代理商返利规则API',
    list: []
})
api[0].list[12].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebateRule/',
    desc: '加载返利规则列表',
});
api[0].list[12].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebateRule/save',
    desc: '保存返利规则',
});
api[0].list[12].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebateRule/del/{id}',
    desc: '删除返利规则',
});
api[0].list[12].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebateRule/getByName',
    desc: '根据名称模糊查询返利规则',
});
api[0].list[12].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebateRule/{id}',
    desc: '根据id查询返利规则详情',
});
api[0].list[12].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rebateRule/level',
    desc: '加载返利规则详情',
});
api[0].list.push({
    alias: 'AgentRefundController',
    order: '14',
    link: '退费记录列表api',
    desc: '退费记录列表Api',
    list: []
})
api[0].list[13].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/refund/',
    desc: '分页加载代理商退费列表',
});
api[0].list[13].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/refund/list/{agentId}',
    desc: '分页加载代理商退费记录列表',
});
api[0].list[13].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/refund/agent',
    desc: '分页加载代理商退费列表---代理用',
});
api[0].list[13].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/refund/',
    desc: '保存代理商退费信息',
});
api[0].list.push({
    alias: 'AgentRenewController',
    order: '15',
    link: '代理商缴费',
    desc: '代理商缴费',
    list: []
})
api[0].list[14].list.push({
    order: '1',
    deprecated: 'true',
    url: 'http://127.0.0.1:7500/agent/renew/',
    desc: '代理缴费列表TODOV2版本上线后可删除',
});
api[0].list[14].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/renewList',
    desc: '代理缴费列表-v2',
});
api[0].list[14].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/record/list',
    desc: '代理缴费记录--(代理缴费详情菜单)-v2',
});
api[0].list[14].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/record/import',
    desc: '代理缴费记录导出--v2',
});
api[0].list[14].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/detail/{id}',
    desc: '代理缴费记录详情--v2',
});
api[0].list[14].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/record/edit',
    desc: '代理缴费记录修改--v2',
});
api[0].list[14].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/list/{agentId}',
    desc: '代理缴费记录详情',
});
api[0].list[14].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/agent',
    desc: '代理商端--代理缴费列表',
});
api[0].list[14].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/chgAgentFee/{agentId}',
    desc: '更改代理代理费',
});
api[0].list[14].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/{id}',
    desc: '查看缴费记录详情',
});
api[0].list[14].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/save',
    desc: '保存代理缴费记录',
});
api[0].list[14].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/excel',
    desc: '代理缴费列表导出',
});
api[0].list[14].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/renewTemplate',
    desc: '代理缴费导入模板下载',
});
api[0].list[14].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/renew/agentRenewImport',
    desc: '代理商批量缴费导入',
});
api[0].list.push({
    alias: 'AgentRuleController',
    order: '16',
    link: '代理商晋升/折扣规则api',
    desc: '代理商晋升/折扣规则Api',
    list: []
})
api[0].list[15].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rule/',
    desc: '加载代理商晋升/折扣规则分页列表',
});
api[0].list[15].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rule/list',
    desc: '加载代理商折扣列表',
});
api[0].list[15].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rule/save',
    desc: '保存代理商晋升/折扣规则信息',
});
api[0].list[15].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rule/del/{id}',
    desc: '',
});
api[0].list[15].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rule/pub/{id}',
    desc: '',
});
api[0].list[15].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/rule/getDisCount/{level}/{type}',
    desc: '',
});
api[0].list.push({
    alias: 'AgentSettleController',
    order: '17',
    link: '代理商银行卡结算信息',
    desc: '代理商银行卡结算信息',
    list: []
})
api[0].list[16].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/settle/',
    desc: '保存代理商银行卡结算信息',
});
api[0].list[16].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/settle/{agentId}',
    desc: '查询代理商银行卡结算信息',
});
api[0].list.push({
    alias: 'AgentSysController',
    order: '18',
    link: '代理商后台接口--管理后台使用',
    desc: '代理商后台接口--管理后台使用',
    list: []
})
api[0].list[17].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/black/pull/{agentId}',
    desc: '加入黑名单',
});
api[0].list[17].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/black/detach/{agentId}',
    desc: '移除黑名单',
});
api[0].list[17].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/black/list',
    desc: '黑名单列表',
});
api[0].list.push({
    alias: 'AgentWithdrawController',
    order: '19',
    link: '代理商提现api',
    desc: '代理商提现Api',
    list: []
})
api[0].list[18].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/',
    desc: '代理商提现列表查询',
});
api[0].list[18].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/agent',
    desc: '代理商提现列表查询--代理用',
});
api[0].list[18].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/customer/{agentId}',
    desc: '客服后台给代理商提现--客服用',
});
api[0].list[18].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/save',
    desc: '客服后台给代理商申请提现--客服新增提现',
});
api[0].list[18].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/audit/{id}',
    desc: '代理商提现审核',
});
api[0].list[18].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/withdrawdetails/{id}',
    desc: '代理商提现审核（数据展示）',
});
api[0].list[18].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/info/{id}',
    desc: '代理商提现信息查询',
});
api[0].list[18].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/withdrawTemplate',
    desc: '代理商提现导入模板下载',
});
api[0].list[18].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/withdraw/agentWithdrawImport',
    desc: '代理商提现导入',
});
api[0].list.push({
    alias: 'ReportAgentController',
    order: '20',
    link: '',
    desc: '',
    list: []
})
api[0].list[19].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agentWithdraw/menuList/{nodeId}',
    desc: '',
});
api[0].list.push({
    alias: 'UpgradeMsgController',
    order: '21',
    link: '代理商模块-代理商升级通知_前端控制器',
    desc: '代理商模块-代理商升级通知前端控制器',
    list: []
})
api[0].list[20].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/upgradeMsg/',
    desc: '根据ID查询代理商升级消息',
});
api[0].list.push({
    alias: 'AgentCommonController',
    order: '22',
    link: '',
    desc: '',
    list: []
})
api[0].list[21].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/checkMobile',
    desc: '',
});
api[0].list[21].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/checkSn',
    desc: '',
});
api[0].list[21].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/tree',
    desc: '',
});
api[0].list[21].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/tree/kefu',
    desc: '',
});
api[0].list[21].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/tree/agent',
    desc: '',
});
api[0].list[21].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/tree/app/agent',
    desc: '',
});
api[0].list[21].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/tree/leader',
    desc: '',
});
api[0].list[21].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/tree/bonus',
    desc: '',
});
api[0].list[21].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/tree/bonus/kefu',
    desc: '',
});
api[0].list[21].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/commn/bonusAgent/{agentId}',
    desc: '',
});
api[0].list.push({
    alias: 'AgentTreeController',
    order: '23',
    link: '代理商通用结构树',
    desc: '代理商通用结构树',
    list: []
})
api[0].list[22].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/kefu/all',
    desc: '代理商通用结构树--客服主管专用',
});
api[0].list[22].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/kefu',
    desc: '代理商通用结构树--后台客服专用',
});
api[0].list[22].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/agent',
    desc: '代理商通用结构树--代理后台专用',
});
api[0].list[22].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/agent/checked/{agentId}',
    desc: '代理商通用结构树--查询指定代理的结构树',
});
api[0].list[22].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/agent/app',
    desc: '代理商通用结构树--APP端代理专用',
});
api[0].list[22].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/tree/leader',
    desc: '',
});
api[0].list[22].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/bonus',
    desc: '代理商通用结构树--推荐人列表（客服专员，管理员）',
});
api[0].list[22].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/bonus/kefu',
    desc: '代理商通用结构树--推荐人列表(客服专用)',
});
api[0].list[22].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/bonus/agent',
    desc: '代理商通用结构树--推荐人列表(代理专用)',
});
api[0].list[22].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/ob/all',
    desc: '代理商通用结构树--推荐人列表&lt;分红发放人&gt;（客服专员，管理员）',
});
api[0].list[22].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/ob/kefu',
    desc: '代理商通用结构树--推荐人列表&lt;分红发放人&gt;(客服专用)',
});
api[0].list[22].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/agent/tree/bonusAgent/{agentId}',
    desc: '',
});
api[0].list.push({
    alias: 'DeliveryCommonController',
    order: '24',
    link: '代理模块-收货地址表_前端控制器',
    desc: '代理模块-收货地址表前端控制器',
    list: []
})
api[0].list[23].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/common/app/{mobile}',
    desc: '',
});
api[0].list[23].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/common/app/add',
    desc: '',
});
api[0].list[23].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/delivery/common/sys/{mobile}',
    desc: '',
});
api[0].list.push({
    alias: 'ApplyForAgentController',
    order: '25',
    link: '',
    desc: '',
    list: []
})
api[0].list[24].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/applyForAgent',
    desc: '',
});
api[0].list[24].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/applyCheck',
    desc: '',
});
api[0].list.push({
    alias: 'FrontAgentBonusController',
    order: '26',
    link: '',
    desc: '',
    list: []
})
api[0].list[25].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/bonus/total',
    desc: '',
});
api[0].list[25].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/bonus/list',
    desc: '',
});
api[0].list.push({
    alias: 'FrontAgentCommissionController',
    order: '27',
    link: '',
    desc: '',
    list: []
})
api[0].list[26].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/commission/total',
    desc: '',
});
api[0].list[26].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/commission/list',
    desc: '',
});
api[0].list.push({
    alias: 'FrontAgentController',
    order: '28',
    link: '',
    desc: '',
    list: []
})
api[0].list[27].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/bindSearch',
    desc: '',
});
api[0].list[27].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/tree',
    desc: '',
});
api[0].list[27].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/group',
    desc: '我的团队',
});
api[0].list[27].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/agentInfo',
    desc: '',
});
api[0].list[27].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/resetPwd',
    desc: '',
});
api[0].list.push({
    alias: 'FrontAgentHomeController',
    order: '29',
    link: '',
    desc: '',
    list: []
})
api[0].list[28].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/frontAgent/index',
    desc: '代理商首页内容返回结果',
});
api[0].list.push({
    alias: 'FrontAgentRebateController',
    order: '30',
    link: '',
    desc: '',
    list: []
})
api[0].list[29].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/rebate/total',
    desc: '',
});
api[0].list[29].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agent/rebate/list',
    desc: '',
});
api[0].list.push({
    alias: 'FrontAgentWithdrawController',
    order: '31',
    link: '',
    desc: '',
    list: []
})
api[0].list[30].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agentWithdraw/withdrawInfo',
    desc: '',
});
api[0].list[30].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agentWithdraw/applyWithdraw',
    desc: '',
});
api[0].list[30].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agentWithdraw/withdrawRecord',
    desc: '',
});
api[0].list[30].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/agentWithdraw/bankHistory',
    desc: '',
});
api[0].list.push({
    alias: 'FrontUpgradeMsgController',
    order: '32',
    link: '&lt;p&gt;代理商模块-代理商升级通知_前端控制器&lt;/p&gt;',
    desc: '&lt;p&gt;代理商模块-代理商升级通知前端控制器&lt;/p&gt;',
    list: []
})
api[0].list[31].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/upgradeMsg/',
    desc: '根据ID查询代理商升级消息',
});
api[0].list.push({
    alias: 'PassportController',
    order: '33',
    link: '代理商登录相关接口',
    desc: '代理商登录相关接口',
    list: []
})
api[0].list[32].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/userInfo',
    desc: '',
});
api[0].list.push({
    alias: 'AgentDeliveryRpcController',
    order: '34',
    link: '',
    desc: '',
    list: []
})
api[0].list[33].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/delivery/createDelivery',
    desc: '',
});
api[0].list.push({
    alias: 'AgentDiscountRpcController',
    order: '35',
    link: '',
    desc: '',
    list: []
})
api[0].list[34].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/act/discount',
    desc: '',
});
api[0].list[34].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/act/rebaterule',
    desc: '',
});
api[0].list[34].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/act/bonusrule',
    desc: '',
});
api[0].list.push({
    alias: 'AgentProfitRpcController',
    order: '36',
    link: '代理获利',
    desc: '代理获利',
    list: []
})
api[0].list[35].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/profit/calc',
    desc: '方法描述:计算代理商返利',
});
api[0].list[35].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/profit/actCalc',
    desc: '方法描述:活动结算计算代理商返利',
});
api[0].list[35].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/profit/unProfit',
    desc: '方法描述:回滚代理商返利',
});
api[0].list.push({
    alias: 'AgentRpcController',
    order: '37',
    link: '代理rpc接口',
    desc: '代理RPC接口',
    list: []
})
api[0].list[36].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/findByMobile',
    desc: '',
});
api[0].list[36].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByMobileOrSn',
    desc: '',
});
api[0].list[36].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByMobile',
    desc: '',
});
api[0].list[36].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/findByAgentSn',
    desc: '',
});
api[0].list[36].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/findByAgentInfo',
    desc: '',
});
api[0].list[36].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByIdAgentCustomer',
    desc: '',
});
api[0].list[36].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectAgentTreeByParentId',
    desc: '',
});
api[0].list[36].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByParentId',
    desc: '',
});
api[0].list[36].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectById',
    desc: '',
});
api[0].list[36].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByAgentId',
    desc: '',
});
api[0].list[36].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByAgentSn',
    desc: '',
});
api[0].list[36].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByAgentMobile',
    desc: '',
});
api[0].list[36].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByCustomerIdAgentLevel',
    desc: '',
});
api[0].list[36].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectAgentIdByAgentLevel',
    desc: '',
});
api[0].list[36].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectByCustomerId',
    desc: '',
});
api[0].list[36].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectAuthVoByLoginName',
    desc: '',
});
api[0].list[36].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectChildByAgentId',
    desc: '',
});
api[0].list[36].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectChildByAgent',
    desc: '',
});
api[0].list[36].list.push({
    order: '19',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/selectChildByKefuId',
    desc: '',
});
api[0].list[36].list.push({
    order: '20',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/updateMobile',
    desc: '',
});
api[0].list[36].list.push({
    order: '21',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/updateTradeDate',
    desc: '',
});
api[0].list[36].list.push({
    order: '22',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/upgradeMsgTask',
    desc: '',
});
api[0].list[36].list.push({
    order: '23',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/agent/expireTask',
    desc: '',
});
api[0].list.push({
    alias: 'error',
    order: '38',
    link: 'error_code_list',
    desc: '错误码列表',
    list: []
})
api[0].list.push({
    alias: 'dict',
    order: '39',
    link: 'dict_list',
    desc: '数据字典',
    list: []
})
api[0].list[38].list.push({
    order: '1',
    deprecated: 'false',
    url: '',
    desc: 'http状态码字典',
});
document.onkeydown = keyDownSearch;
function keyDownSearch(e) {
    const theEvent = e;
    const code = theEvent.keyCode || theEvent.which || theEvent.charCode;
    if (code == 13) {
        const search = document.getElementById('search');
        const searchValue = search.value;
        let searchGroup = [];
        for (let i = 0; i < api.length; i++) {

            let apiGroup = api[i];

            let searchArr = [];
            for (let i = 0; i < apiGroup.list.length; i++) {
                let apiData = apiGroup.list[i];
                const desc = apiData.desc;
                if (desc.indexOf(searchValue) > -1) {
                    searchArr.push({
                        order: apiData.order,
                        desc: apiData.desc,
                        link: apiData.link,
                        list: apiData.list
                    });
                } else {
                    let methodList = apiData.list || [];
                    let methodListTemp = [];
                    for (let j = 0; j < methodList.length; j++) {
                        const methodData = methodList[j];
                        const methodDesc = methodData.desc;
                        if (methodDesc.indexOf(searchValue) > -1) {
                            methodListTemp.push(methodData);
                            break;
                        }
                    }
                    if (methodListTemp.length > 0) {
                        const data = {
                            order: apiData.order,
                            desc: apiData.desc,
                            link: apiData.link,
                            list: methodListTemp
                        };
                        searchArr.push(data);
                    }
                }
            }
            if (apiGroup.name.indexOf(searchValue) > -1) {
                searchGroup.push({
                    name: apiGroup.name,
                    order: apiGroup.order,
                    list: searchArr
                });
                continue;
            }
            if (searchArr.length === 0) {
                continue;
            }
            searchGroup.push({
                name: apiGroup.name,
                order: apiGroup.order,
                list: searchArr
            });
        }
        let html;
        if (searchValue == '') {
            const liClass = "";
            const display = "display: none";
            html = buildAccordion(api,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        } else {
            const liClass = "open";
            const display = "display: block";
            html = buildAccordion(searchGroup,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        }
        const Accordion = function (el, multiple) {
            this.el = el || {};
            this.multiple = multiple || false;
            const links = this.el.find('.dd');
            links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
        };
        Accordion.prototype.dropdown = function (e) {
            const $el = e.data.el;
            $this = $(this), $next = $this.next();
            $next.slideToggle();
            $this.parent().toggleClass('open');
            if (!e.data.multiple) {
                $el.find('.submenu').not($next).slideUp("20").parent().removeClass('open');
            }
        };
        new Accordion($('#accordion'), false);
    }
}

function buildAccordion(apiGroups, liClass, display) {
    let html = "";
    let doc;
    if (apiGroups.length > 0) {
         if (apiDocListSize == 1) {
            let apiData = apiGroups[0].list;
            for (let j = 0; j < apiData.length; j++) {
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiData[j].link + '">' + apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                html += '<ul class="sectlevel2" style="'+display+'">';
                doc = apiData[j].list;
                for (let m = 0; m < doc.length; m++) {
                    let spanString;
                    if (doc[m].deprecated == 'true') {
                        spanString='<span class="line-through">';
                    } else {
                        spanString='<span>';
                    }
                    html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                }
                html += '</ul>';
                html += '</li>';
            }
        } else {
            for (let i = 0; i < apiGroups.length; i++) {
                let apiGroup = apiGroups[i];
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiGroup.name + '">' + apiGroup.order + '.&nbsp;' + apiGroup.name + '</a>';
                html += '<ul class="sectlevel1">';

                let apiData = apiGroup.list;
                for (let j = 0; j < apiData.length; j++) {
                    html += '<li class="'+liClass+'">';
                    html += '<a class="dd" href="#_' + apiData[j].link + '">' +apiGroup.order+'.'+ apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                    html += '<ul class="sectlevel2" style="'+display+'">';
                    doc = apiData[j].list;
                    for (let m = 0; m < doc.length; m++) {
                       let spanString;
                       if (doc[m].deprecated == 'true') {
                           spanString='<span class="line-through">';
                       } else {
                           spanString='<span>';
                       }
                       html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                   }
                    html += '</ul>';
                    html += '</li>';
                }

                html += '</ul>';
                html += '</li>';
            }
        }
    }
    return html;
}